<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterMatchesAddColumn extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('matches', function (Blueprint $table) {
            // $table->integer('limit')->default(0)->comment('限额');
            // $table->integer('report')->default(0)->comment('已报名人数');
            // $table->dateTime('begin_report_time')->nullable()->comment('开始报名时间');
            // $table->dateTime('end_report_time')->nullable()->comment('结束报名时间');
            // $table->integer('sport_id')->default(0)->comment('运动类型');
            $table->decimal('money')->default(0)->comment('报名金额');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
